package com.xk._01基础篇._04栈Stack;

/**
 * @description:
 * @author: xu
 * @date: 2022/9/17 23:38
 */
public class Mian {
    public static void main(String[] args) {

        Stack<Integer> stack = new Stack<>();
        stack.push(11);
        stack.push(22);
        stack.push(33);
        stack.push(44);

        while (!stack.isEmpty()) {
            System.out.println("stack.pop() = " + stack.pop());
        }

    }
}
